package com.student.client.service;

import com.student.client.entity.Medicine;
import com.student.client.entity.Vaccines;
import com.student.client.mapper.MedicineMapper;
import com.student.client.mapper.VaccinesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicineService {
    @Autowired
    private MedicineMapper medicineMapper;

    public List<Medicine> findAllMedicine(){
        return medicineMapper.findAllMedicine();
    }

    public Integer addMedicine(Medicine medicine){
        return medicineMapper.addMedicine(medicine);
    }
}
